package chapter_19_mediator.classic;

/**
 * @author yaochenglong
 * @date 2017/10/23
 * 具体同事类
 */
public class ConcreteColleague2 extends AbstractColleague {

    public ConcreteColleague2(AbstractMediator abstractMediator) {
        super(abstractMediator);
    }

    public void selfMethod1(){
        System.out.println("ConcreteColleague2...selfMethod1");
    }

    public void selfMethod2(){
        System.out.println("ConcreteColleague2...selfMethod2");
        //自己不能处理的逻辑交给中介者处理
        mediator.doSomething2();
    }

}
